<%@ page contentType="text/html; charset=utf-8" %>
<%@ include file="../common.jsp" %>
<jsp:include page="safe.jsp"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link href="../CSS/style.css" rel="stylesheet">
    </head>
  
<body>
<%
if(request.getParameter("hID")!=null){
	int ID=Integer.parseInt(request.getParameter("hID"));	
	int ret=bookDB.deleteBBS(ID);
	if (ret==0){
		out.println("<script language='javascript'>alert('公告信息删除成功！');window.location.href='BBSManage.jsp';</script>");
		}else{
		out.println("<script language='javascript'>alert('公告信息删除失败！');window.location.href='BBSManage.jsp';</script>");
	}
}else{
	out.println("<script language='javascript'>alert('您的操作有误！');window.location.href='BBSManage.jsp';</script>");
}
%>
</body>
</html>
